<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 600px;
      height: 500px;
      background-color: burlywood;
      border: 10px solid red;
      clear: both;
    }

    p {
      float: left;
      width: 100px;
      height: 100px;
      background-color: chartreuse;
      margin-left: 10px;
    }
  </style>
</head>

<body>
  <div>
    <p>1</p>
    <p>2</p>
    <p>3</p>
    <p>4</p>
  </div>
</body>

</html>